export function Test2() {
    const state={
        isRed:false,
        isBlue:true
    }
    return (
        <div className="area">
            <h1>2.Test:条件渲染</h1>
            {state.isRed?<div>true</div>:<div>false</div>}
            {state.isBlue?<div>true</div>:<div>false</div>}
        </div>
    )
}
